<?php
class SQLite extends SGBD {
    
    private $pathToDatabase;
    
    public function __construct(Prepare $prepare) {
        parent::__construct($prepare);
        ini_set("extension", "sqlite.so");
    }

    public function getDNS() {
        $dns = "sqlite:" . $this->getPathToDatabase(); 
        return $dns;
    }
    
    public function getPathToDatabase(){
        return $this->pathToDatabase;
    }
    
    public function setPathToDatabase($path){
        $this->pathToDatabase = $path;
    }
    
    public function getConnection() {
        parent::getConnection(true);
    }
} 
?>
